{extend name="public:layout" /}
{block name="title"}客户结算{/block}
{block name="head"}
<style>
    body{width:100%;}
    @media print {
        .noprn{ display:none;}
    }
    .table > tbody > tr > td{padding:2px;font-size:12px;text-align:center;border:1px solid #000;}
</style>
{/block}
{block name="body"}
<div class="wrapper wrapper-content" style="width:680px;height:397px;padding:30px;box-sizing: border-box;background:#fff;">
    <h1 style="text-align:center;font-size:14px;">{$btypeinfo.title}账目清算单{$rangdate}</h1>
    <p>客户名称:{$btypeinfo.title} 电话：{$btypeinfo.btype_phone} <span class="pull-right">订单总额：{$sum.sum_order_charge}元</span></p>
    <table class="table" style="border:1px solid #000;table-layout:fixed">
        <tr>
            <td width="220">行程单</td>
            <td width="50">司机</td>
            <td width="90">接车联系人</td>
            <td width="80">订单金额</td>
            <td width="50">定金</td>
            <td width="80">已付款</td>
            <td width="60">优惠金额</td>
        </tr>
        {volist name="list" id="vo"}
        <tr>
            <td>
                {$vo.title}<br>
                [{:date('Y-m-d H:i',strtotime($vo.order_start_time))}]-[{:date('Y-m-d H:i',strtotime($vo.order_end_time))}]
            </td>
            <td>{$vo.fleet_driver}</td>
            <td>{$vo.guide}({$vo.guide_tel})</td>
            <td>{$vo.order_charge}</td>
            <td>{$vo.order_advance}</td>
            <td>{$vo.order_pay}</td>
            <td>{$vo.discount_money|default=0}</td>
        </tr>
        {/volist}
    </table>
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content p-xl">
                <!-- /table-responsive -->
                <div class="text-right noprn">
                    <a href="/system/logic.order/paymoney.html?order_q=0" class="btn btn-white">取消</a>
                    <button type="button" onclick="window.print();" class="btn btn-info">打印</button>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}{/block}